<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="js/swiper-4.2.6.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="css/swiper-4.2.6.min.css"/>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="js/public.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/font.js"></script>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/ui.css">
    <title></title>
    <!-- 个人中心-支付密码 -->
    <style>
    </style>
</head>
<body>
<div class="scroll-content2 my-mm" style="overflow:auto;background: #F5F5F5;">
    <div class="top-public">
        <span class="public-center">支付密码</span>        
        <img src="images/left_icon.png" alt="" class="public-left">
    </div>
    <ul>
        <a href="my_mm_sz.html">
            <li>
                <img src="images/icon_mima@2x.png" alt="">
                <span>设置支付密码</span>
            </li>
        </a>
        <a href="my_mm_sr.html">
            <li>
                <img src="images/icon_mima@2x.png" alt="">
                <span>修改支付密码</span>
            </li>
        </a>
    </ul>
</div>
</body>
<script>
$('.public-left').click(function(){
    window.history.go(-1);
})
function xz(obj){
    $('.choice-btn').removeClass('active');
    $(obj).addClass('active').siblings().removeClass('active');
}
</script>

<script>
    // $(function(){
    //     //验证是否登陆
    //     var user_id = sessionStorage.getItem('userId');
    //     if (user_id == null) {
    //         alert('请先登录！');
    //         window.location.href = 'login.html';
    //     }
    //     //获取用户的信息
    //     getUserLists();
    // });
    function getUserLists() {
        var user_id = sessionStorage.getItem("userId"); //用户ID
        $.ajax({
            url: url() + 'api/users/user_details', //请求的url地址
            dataType: "JSON",   //返回格式为json
            async: true,//请求是否异步，默认为异步，这也是ajax重要特性
            type: "POST",   //请求方式
            data:{
                user_id:user_id,
            },
            success: function (data) {
                //请求成功时处理
                if(data.status==1){
                    // console.log(data.result);
                    var html1 = '';
                    var img = imgUrl() + data.result.head_pic;
                    html1 = `
                            <div class="user-img">
                                <img src="${img}" alt="">
                            </div>
                            <ul>
                            <li><span>${data.result.provincial_jane}</span></li>
                            <li>${data.result.reg_time}</li>
                            <li>${data.result.user_code}</li>
                            </ul>
                    `;
                    $('#userList').html(html1);
                } else {
                    alert(data.msg);
                }
            }
        });
    }
</script>



</html> 






